<%@ page language="java" pageEncoding="UTF-8" isErrorPage="true"
	contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/struts-tags" prefix="s" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
		

    <%
		response.setStatus(500);		
	%>
	
	<head>
		<title>系统错误</title>
		
		<script type="text/javascript" src="<%=application.getContextPath()%>/js/ibnms/jquery/jquery-1.6.2.min.js"></script>
		    <style type="text/css">
		<!--
		
		.box {
			width: 760px;
			margin-right: auto;
			margin-left: auto;
			font-family: "宋体";
			font-size: 12px;
			
			
		}
		.box ul {
			margin-top: 30px;
			float: left;
			margin-left:10px;
		}
		.box img {
			float: left;
			display: block;
			margin-top: 30px;

			height: 53px;
			width: 54px;
		}
		.box li {
			list-style-type: none;
			margin-top: 4px;
			margin-bottom: 10px;
		}
		.clear {
			clear: both;
		}
		.xx {
			background-color: #f8f8f8;
			border-top: 1px solid #b4b6b7;
			margin-top: 10px;
			width: 770px;
			margin-right: auto;
			margin-left: auto;
			padding:0px 10px 10px 10px;
		}
		.xx h1 {
			font-size: 12px;
			color: #FF0000;
			margin-top: 10px;
			font-weight: normal;
		}
		.xx p {
			text-align: left;
			word-wrap:break-word;
			line-height: 20px;
		}
		.fort_red{
			font-family: "微软雅黑";
			font-size: 16px;
			color: #FF0000;
			font-weight: bold;
		}
		a.font_blue{
			color: #2545a2;
			text-decoration: underline;
			font-size: 14px;
			font-weight: bold;
		}
		a.font_blue:visited {
			color: #2545a2;
			text-decoration: underline;
			font-size: 14px;
			font-weight: bold;
		}
		a.font_blue:hover {
			color: #333333;
			text-decoration: none;
			font-weight: bold;
		}	
		-->
		</style>
		
	</head>

	<body id="error">	
	 <div class="box">
	   
	    <img src="<%=application.getContextPath()%>/resources/ibnms/images/errorInfo.png" />
	   
	    <ul>	
		 <li class="fort_red" ><s:property value="exception.errorTittle"/></li>		
		 <li><a class="font_blue" href="javascript:void(0);" id="showExceptionStack" target="">查看详细信息</a></li>
		</ul>
		
		<div class="clear"></div>	
		<div class="xx" id="msgStack" style="display:none">
		<h1>错误详细信息</h1>
		<p>
			<s:property value="exceptionStack"/>
		</p>
		</div>
	</div>			
	</body>
	<script>
		if(window.$){
			$("a#showExceptionStack").click(function(){
				if($("#msgStack").is(":visible")){
					$("#msgStack").hide();
				}else{
					$("#msgStack").show();
				}
				return false;
			});
		}else{
			location.reload();
		}
	</script>
</html>
